package com.fxhy.base;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Transient;

import org.springframework.format.annotation.DateTimeFormat;

public class BaseEntityIDE implements Serializable{
    /**
	 *	主键自动生成
	 */
	private static final long serialVersionUID = 1L;

	@Id
    @Column(name = "fid",unique = true)
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	protected Integer fid;
	
	@Column(name = "fcreateTime")
	protected Date fcreateTime;
	
	@Column(name = "fupdateTime")
	protected Date fupdateTime;
	
	@Column(name = "fcreateBy")
	private String fcreateBy;
	
	@Column(name = "fupdateBy")
	private String fupdateBy;
	
    public Integer getFid() {
		return fid;
	}

	public void setFid(Integer fid) {
		this.fid = fid;
	}
	
	@Transient
    private Integer page = 1;

    @Transient
    private Integer rows = 10;

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getRows() {
        return rows;
    }

    public void setRows(Integer rows) {
        this.rows = rows;
    }
    @DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
	public Date getFcreateTime() {
		return fcreateTime;
	}

	public void setFcreateTime(Date fcreateTime) {
		this.fcreateTime = fcreateTime;
	}
	@DateTimeFormat(pattern = "yyyy-MM-dd hh:mm:ss")
	public Date getFupdateTime() {
		return fupdateTime;
	}

	public void setFupdateTime(Date fupdateTime) {
		this.fupdateTime = fupdateTime;
	}

	public String getFcreateBy() {
		return fcreateBy;
	}

	public void setFcreateBy(String fcreateBy) {
		this.fcreateBy = fcreateBy;
	}

	public String getFupdateBy() {
		return fupdateBy;
	}

	public void setFupdateBy(String fupdateBy) {
		this.fupdateBy = fupdateBy;
	}
}
